package com.happy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ("collection_info")
public class CollectionEntity extends BaseEntity {

    @TableId (value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField ("userId")
    private Integer userId;
    @TableField ("relationId")
    private Integer relationId; // 收藏的对象的id
    @TableField ("type")
    private Integer type;
    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public Integer getId () {
        return id;
    }

    public void setId ( Integer id ) {
        this.id = id;
    }

    public Integer getUserId () {
        return userId;
    }

    public void setUserId ( Integer userId ) {
        this.userId = userId;
    }

    public Integer getRelationId () {
        return relationId;
    }

    public void setRelationId ( Integer relationId ) {
        this.relationId = relationId;
    }

    public Integer getType () {
        return type;
    }

    public void setType ( Integer type ) {
        this.type = type;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime ( Date createTime ) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime ( Date changeTime ) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed ( Integer isUsed ) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "CollectionInfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", relationId=" + relationId +
                ", type=" + type +
                ", createTime=" + createTime +
                ", changeTime=" + changeTime +
                ", isUsed=" + isUsed +
                '}';
    }
}
